package com.zhouxiaoge.singletonpattern.lazysingleton;

public class LazySingletonSafety {

    private static LazySingletonSafety lazySingletonSafety;

    private LazySingletonSafety() {

    }

    public static synchronized LazySingletonSafety getLazySingletonSafety() {
        if (lazySingletonSafety == null) {
            lazySingletonSafety = new LazySingletonSafety();
        }
        return lazySingletonSafety;
    }
}
